import time

import akshare as ak

# 获取ETF基金行情列表 东财
# https://quote.eastmoney.com/center/gridlist.html#fund_etf
df = ak.fund_etf_spot_em()
date = time.strftime("%Y%m%d", time.localtime())
df.to_excel(f"ETF基金实时行情_{date}.xlsx", index=False)

